package com.zkthink.ceres.member.enums;


import lombok.Getter;

//审核状态 0:重新填写 1:待审核 2:审核通过 3:审核未通过
@Getter
public enum MemberAuthenticationTypeEnum {
    ChongXin_TianXie(0, "重新填写 "),
    ShenHe_ZhunBei(1, "待审核 "),
    ShenHe_Yes(2, "审核通过 "),
    ShenHe_No(3, "审核未通过 "),

    ;

    private int code;

    private String desc;

    MemberAuthenticationTypeEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static String getValue(int code) {
        MemberAuthenticationTypeEnum[] memberAuthenticationTypeEnums = values();
        for (MemberAuthenticationTypeEnum memberAuthenticationTypeEnum : memberAuthenticationTypeEnums) {
            if (memberAuthenticationTypeEnum.code() == code) {
                return memberAuthenticationTypeEnum.desc();
            }
        }
        return null;
    }


    private int code() {
        return this.code;
    }

    private String desc() {
        return this.desc;
    }
}
